package com.tunelib.client.managed.request;

import com.google.gwt.requestfactory.shared.RequestContext;
import org.springframework.roo.addon.gwt.RooGwtMirroredFrom;
import com.tunelib.server.domain.Artist;
import com.google.gwt.requestfactory.shared.Service;
import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.InstanceRequest;

@RooGwtMirroredFrom(Artist.class)
@Service(Artist.class)
public interface ArtistRequest extends RequestContext {

    abstract Request<java.lang.Long> countArtists();

    abstract Request<java.util.List<com.tunelib.client.managed.request.ArtistProxy>> findAllArtists();

    abstract Request<java.util.List<com.tunelib.client.managed.request.ArtistProxy>> findArtistEntries(int firstResult, int maxResults);

    abstract Request<com.tunelib.client.managed.request.ArtistProxy> findArtist(Long id);

    abstract InstanceRequest<com.tunelib.client.managed.request.ArtistProxy, java.lang.Void> remove();

    abstract InstanceRequest<com.tunelib.client.managed.request.ArtistProxy, java.lang.Void> persist();
}
